package com.bristua.mall.common.biz;

import com.bristua.mall.common.dao.TIndexCategoryMapper;
import com.bristua.mall.common.model.TIndexCategory;
import com.bristua.mall.common.model.condition.TIndexCategoryExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2019/5/5.
 */
@Service
public class QueryIndexCategoryBiz {
    @Resource
    private TIndexCategoryMapper tIndexCategoryMapper;

    public List<TIndexCategory> queryIndexCategory(){
        TIndexCategoryExample tIndexCategoryExample = new TIndexCategoryExample();
        tIndexCategoryExample.createCriteria().andStatusEqualTo(1);
        return tIndexCategoryMapper.selectByExample(tIndexCategoryExample);
    }
}
